package com.example.demo.proxy.jdk;

/**
 * @author xin.you
 * @date 2022/2/6
 * @description
 */
public class Client {

    public static void main(String[] args) {
        ITeacherDao target=new TeacherDao();
        ITeacherDao proxyInstance = (ITeacherDao) new FactoryProxy(target).getProxyInstance();
        proxyInstance.teach();
    }
}
